﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Buisness_Level
{
    public class Teacher : Person
    {
        private string degree;
        private string position;
        private string department;

        private List<int> papers;
        private int booksCount;
        private int actionsCount;

        public Teacher(string firstName, string middleName, string secondName, string degree, string position,
            string department) :
            base(firstName, middleName, secondName)
        {
            this.degree = degree;
            this.position = position;
            this.department = department;

        }
        public override double CalculateScores(List<int> papers)
        {
            double result = base.CalculateScores(papers) * 1.5;
            return result = result + (100 * booksCount * 1.3) + (100 * actionsCount * 1.1);
        }
        public int BooksCount
        { // свойство чтобы был доступ
            get { return booksCount; }
            set { booksCount = value; }
        }
        public int ActionsCount
        { 
            get { return actionsCount; }
            set { actionsCount = value; }
        }
    }
}

